package com.schoolCommunity.mapper;

import com.schoolCommunity.entity.Commodity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author YTH
 * @since 2020-10-10
 */
public interface CommodityMapper extends BaseMapper<Commodity> {

    //获取最后插入的id
    @Select("SELECT LAST_INSERT_ID();")
    public long getLastId();

}
